import axios from '@/utils/http'


export function updNews(params: any) {
  return axios({
    url: '/news/update',
    method: 'post',
    params: params
  })
}

export function addNews(params: any) {
  return axios({
    url: '/news/add',
    method: 'post',
    params: params
  })
}

export function delNews(params: any) {
    return axios({
      url: '/news/del',
      method: 'get',
      params: params
    })
  }
//首页获取新闻和公告
export function getPromotionNews(params: any) {
  return axios({
    url: '/news/getPromotionNews',
    method: 'get',
    params: params
  })
}


